package com.jshoperxms.entity;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * Created by sdywcd on 2018/9/26.
 * Des:
 */
@Entity
@Table(name = "member_t", schema = "jshoperxms", catalog = "")
public class MemberT {
    private String id;
    private String loginname;
    private String loginpwd;
    private String nick;
    private String realname;
    private String city;
    private String district;
    private String sex;
    private String whichsex;
    private String merrystatus;
    private String birthday;
    private String blood;
    private String constellation;
    private String des;
    private String email;
    private String qq;
    private String weixin;
    private String sinaweibo;
    private String tag;
    private int totalbelove;
    private int totalloveother;
    private int postingcount;
    private String memberstate;
    private String headpath;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private String mobile;
    private int versiont;
    private String mid;
    private String memberGroupId;
    private String memberGroupName;
    private BigDecimal integration;
    private String telno;
    private String status;
    private String province;
    private String wxopenid;
    private String wxsessionkey;
    private String country;
    private String language;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "LOGINNAME", nullable = false, length = 100)
    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    @Basic
    @Column(name = "LOGINPWD", nullable = false, length = 64)
    public String getLoginpwd() {
        return loginpwd;
    }

    public void setLoginpwd(String loginpwd) {
        this.loginpwd = loginpwd;
    }

    @Basic
    @Column(name = "NICK", nullable = false, length = 45)
    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    @Basic
    @Column(name = "REALNAME", nullable = false, length = 45)
    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    @Basic
    @Column(name = "CITY", nullable = false, length = 100)
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "DISTRICT", nullable = false, length = 100)
    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    @Basic
    @Column(name = "SEX", nullable = false, length = 1)
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Basic
    @Column(name = "WHICHSEX", nullable = false, length = 1)
    public String getWhichsex() {
        return whichsex;
    }

    public void setWhichsex(String whichsex) {
        this.whichsex = whichsex;
    }

    @Basic
    @Column(name = "MERRYSTATUS", nullable = false, length = 1)
    public String getMerrystatus() {
        return merrystatus;
    }

    public void setMerrystatus(String merrystatus) {
        this.merrystatus = merrystatus;
    }

    @Basic
    @Column(name = "BIRTHDAY", nullable = false, length = 45)
    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    @Basic
    @Column(name = "BLOOD", nullable = false, length = 20)
    public String getBlood() {
        return blood;
    }

    public void setBlood(String blood) {
        this.blood = blood;
    }

    @Basic
    @Column(name = "CONSTELLATION", nullable = false, length = 20)
    public String getConstellation() {
        return constellation;
    }

    public void setConstellation(String constellation) {
        this.constellation = constellation;
    }

    @Basic
    @Column(name = "DES", nullable = false, length = 500)
    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Basic
    @Column(name = "EMAIL", nullable = false, length = 100)
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Basic
    @Column(name = "QQ", nullable = false, length = 100)
    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    @Basic
    @Column(name = "WEIXIN", nullable = false, length = 100)
    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    @Basic
    @Column(name = "SINAWEIBO", nullable = false, length = 100)
    public String getSinaweibo() {
        return sinaweibo;
    }

    public void setSinaweibo(String sinaweibo) {
        this.sinaweibo = sinaweibo;
    }

    @Basic
    @Column(name = "TAG", nullable = false, length = 100)
    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    @Basic
    @Column(name = "TOTALBELOVE", nullable = false)
    public int getTotalbelove() {
        return totalbelove;
    }

    public void setTotalbelove(int totalbelove) {
        this.totalbelove = totalbelove;
    }

    @Basic
    @Column(name = "TOTALLOVEOTHER", nullable = false)
    public int getTotalloveother() {
        return totalloveother;
    }

    public void setTotalloveother(int totalloveother) {
        this.totalloveother = totalloveother;
    }

    @Basic
    @Column(name = "POSTINGCOUNT", nullable = false)
    public int getPostingcount() {
        return postingcount;
    }

    public void setPostingcount(int postingcount) {
        this.postingcount = postingcount;
    }

    @Basic
    @Column(name = "MEMBERSTATE", nullable = false, length = 1)
    public String getMemberstate() {
        return memberstate;
    }

    public void setMemberstate(String memberstate) {
        this.memberstate = memberstate;
    }

    @Basic
    @Column(name = "HEADPATH", nullable = false, length = 255)
    public String getHeadpath() {
        return headpath;
    }

    public void setHeadpath(String headpath) {
        this.headpath = headpath;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 20)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "MOBILE", nullable = false, length = 20)
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "MID", nullable = false, length = 64)
    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    @Basic
    @Column(name = "MEMBER_GROUP_ID", nullable = false, length = 20)
    public String getMemberGroupId() {
        return memberGroupId;
    }

    public void setMemberGroupId(String memberGroupId) {
        this.memberGroupId = memberGroupId;
    }

    @Basic
    @Column(name = "MEMBER_GROUP_NAME", nullable = false, length = 45)
    public String getMemberGroupName() {
        return memberGroupName;
    }

    public void setMemberGroupName(String memberGroupName) {
        this.memberGroupName = memberGroupName;
    }

    @Basic
    @Column(name = "INTEGRATION", nullable = false, precision = 2)
    public BigDecimal getIntegration() {
        return integration;
    }

    public void setIntegration(BigDecimal integration) {
        this.integration = integration;
    }

    @Basic
    @Column(name = "TELNO", nullable = false, length = 20)
    public String getTelno() {
        return telno;
    }

    public void setTelno(String telno) {
        this.telno = telno;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "PROVINCE", nullable = false, length = 100)
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "WXOPENID", nullable = true, length = 45)
    public String getWxopenid() {
        return wxopenid;
    }

    public void setWxopenid(String wxopenid) {
        this.wxopenid = wxopenid;
    }

    @Basic
    @Column(name = "WXSESSIONKEY", nullable = true, length = 45)
    public String getWxsessionkey() {
        return wxsessionkey;
    }

    public void setWxsessionkey(String wxsessionkey) {
        this.wxsessionkey = wxsessionkey;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MemberT memberT = (MemberT) o;

        if (totalbelove != memberT.totalbelove) return false;
        if (totalloveother != memberT.totalloveother) return false;
        if (postingcount != memberT.postingcount) return false;
        if (createtime != memberT.createtime) return false;
        if (updatetime != memberT.updatetime) return false;
        if (versiont != memberT.versiont) return false;
        if (id != null ? !id.equals(memberT.id) : memberT.id != null) return false;
        if (loginname != null ? !loginname.equals(memberT.loginname) : memberT.loginname != null) return false;
        if (loginpwd != null ? !loginpwd.equals(memberT.loginpwd) : memberT.loginpwd != null) return false;
        if (nick != null ? !nick.equals(memberT.nick) : memberT.nick != null) return false;
        if (realname != null ? !realname.equals(memberT.realname) : memberT.realname != null) return false;
        if (city != null ? !city.equals(memberT.city) : memberT.city != null) return false;
        if (district != null ? !district.equals(memberT.district) : memberT.district != null) return false;
        if (sex != null ? !sex.equals(memberT.sex) : memberT.sex != null) return false;
        if (whichsex != null ? !whichsex.equals(memberT.whichsex) : memberT.whichsex != null) return false;
        if (merrystatus != null ? !merrystatus.equals(memberT.merrystatus) : memberT.merrystatus != null) return false;
        if (birthday != null ? !birthday.equals(memberT.birthday) : memberT.birthday != null) return false;
        if (blood != null ? !blood.equals(memberT.blood) : memberT.blood != null) return false;
        if (constellation != null ? !constellation.equals(memberT.constellation) : memberT.constellation != null)
            return false;
        if (des != null ? !des.equals(memberT.des) : memberT.des != null) return false;
        if (email != null ? !email.equals(memberT.email) : memberT.email != null) return false;
        if (qq != null ? !qq.equals(memberT.qq) : memberT.qq != null) return false;
        if (weixin != null ? !weixin.equals(memberT.weixin) : memberT.weixin != null) return false;
        if (sinaweibo != null ? !sinaweibo.equals(memberT.sinaweibo) : memberT.sinaweibo != null) return false;
        if (tag != null ? !tag.equals(memberT.tag) : memberT.tag != null) return false;
        if (memberstate != null ? !memberstate.equals(memberT.memberstate) : memberT.memberstate != null) return false;
        if (headpath != null ? !headpath.equals(memberT.headpath) : memberT.headpath != null) return false;
        if (creatorid != null ? !creatorid.equals(memberT.creatorid) : memberT.creatorid != null) return false;
        if (mobile != null ? !mobile.equals(memberT.mobile) : memberT.mobile != null) return false;
        if (mid != null ? !mid.equals(memberT.mid) : memberT.mid != null) return false;
        if (memberGroupId != null ? !memberGroupId.equals(memberT.memberGroupId) : memberT.memberGroupId != null)
            return false;
        if (memberGroupName != null ? !memberGroupName.equals(memberT.memberGroupName) : memberT.memberGroupName != null)
            return false;
        if (integration != null ? !integration.equals(memberT.integration) : memberT.integration != null) return false;
        if (telno != null ? !telno.equals(memberT.telno) : memberT.telno != null) return false;
        if (status != null ? !status.equals(memberT.status) : memberT.status != null) return false;
        if (province != null ? !province.equals(memberT.province) : memberT.province != null) return false;
        if (wxopenid != null ? !wxopenid.equals(memberT.wxopenid) : memberT.wxopenid != null) return false;
        if (wxsessionkey != null ? !wxsessionkey.equals(memberT.wxsessionkey) : memberT.wxsessionkey != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (loginname != null ? loginname.hashCode() : 0);
        result = 31 * result + (loginpwd != null ? loginpwd.hashCode() : 0);
        result = 31 * result + (nick != null ? nick.hashCode() : 0);
        result = 31 * result + (realname != null ? realname.hashCode() : 0);
        result = 31 * result + (city != null ? city.hashCode() : 0);
        result = 31 * result + (district != null ? district.hashCode() : 0);
        result = 31 * result + (sex != null ? sex.hashCode() : 0);
        result = 31 * result + (whichsex != null ? whichsex.hashCode() : 0);
        result = 31 * result + (merrystatus != null ? merrystatus.hashCode() : 0);
        result = 31 * result + (birthday != null ? birthday.hashCode() : 0);
        result = 31 * result + (blood != null ? blood.hashCode() : 0);
        result = 31 * result + (constellation != null ? constellation.hashCode() : 0);
        result = 31 * result + (des != null ? des.hashCode() : 0);
        result = 31 * result + (email != null ? email.hashCode() : 0);
        result = 31 * result + (qq != null ? qq.hashCode() : 0);
        result = 31 * result + (weixin != null ? weixin.hashCode() : 0);
        result = 31 * result + (sinaweibo != null ? sinaweibo.hashCode() : 0);
        result = 31 * result + (tag != null ? tag.hashCode() : 0);
        result = 31 * result + totalbelove;
        result = 31 * result + totalloveother;
        result = 31 * result + postingcount;
        result = 31 * result + (memberstate != null ? memberstate.hashCode() : 0);
        result = 31 * result + (headpath != null ? headpath.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + (mobile != null ? mobile.hashCode() : 0);
        result = 31 * result + versiont;
        result = 31 * result + (mid != null ? mid.hashCode() : 0);
        result = 31 * result + (memberGroupId != null ? memberGroupId.hashCode() : 0);
        result = 31 * result + (memberGroupName != null ? memberGroupName.hashCode() : 0);
        result = 31 * result + (integration != null ? integration.hashCode() : 0);
        result = 31 * result + (telno != null ? telno.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (province != null ? province.hashCode() : 0);
        result = 31 * result + (wxopenid != null ? wxopenid.hashCode() : 0);
        result = 31 * result + (wxsessionkey != null ? wxsessionkey.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "COUNTRY", nullable = true, length = 100)
    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    @Basic
    @Column(name = "LANGUAGE", nullable = true, length = 45)
    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }
}
